﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ThouShaltNotBrick.Models;
using Microsoft.Xna.Framework.Content.Pipeline;
using System.IO;
using System.Xml;
using System.Xml.Linq;
using ThouShaltNotBrick.DataAccess;

namespace ThouShaltNotBrick.PipelineExtension
{
    [ContentProcessor(DisplayName = "Campaign Content Processor")]
    public sealed class CampaignContentProcessor : ContentProcessor<CampaignSource, CampaignData>
    {
        #region Overriden Methods
        public override CampaignData Process(CampaignSource pInput, ContentProcessorContext pContext)
        {
            return CampaignXmlReader.Parse(pInput.Source);
        }
        #endregion
    }
}